/****** Object:  Stored Procedure [dbo].spKhachHangDelete Script Date: 6/11/2012 ******/
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'[dbo].[spKhachHangDelete]') AND OBJECTPROPERTY(id, N'IsProcedure') = 1)
	DROP PROCEDURE [dbo].[spKhachHangDelete]
GO

/******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:					Description:
**		--------	--------				-----------------------------------
**		11/06/2012	SongTM					Innit created
*******************************************************************************/

CREATE PROCEDURE [dbo].[spKhachHangDelete]
(
	@MaKH nvarchar(6)
)
WITH ENCRYPTION
AS

SET NOCOUNT ON

DELETE FROM [dbo].[tbl_KhachHang]
WHERE
	[MaKH] = @MaKH
GO

--GRANT EXECUTE ON [dbo].[spKhachHangDelete] TO [sa]
--GO
